package com.itheima.feign.fallback;

import com.itheima.feign.UserFeignClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Jt
 * @date 2021/4/7 9:08
 */
@Component
public class UserFeignClientImpl implements UserFeignClient {

    @Override
    public Map queryById(String username) {
        Map map = new HashMap();
        map.put("msg", "对不起网络出现异常,请稍后重试");
        return map;
    }

    @Override
    public String save(Map user) {
        return null;
    }

    @Override
    public String delete(String username) {
        return null;
    }

}
